Setup server systemd unit
info
âšī¸ Use this systemd unit to start TunGo automatically on reboot.
âī¸ Prerequisitesâ
- TunGo is installed as described in Quickstart.
đ ī¸ Setupâ
1ī¸âŖ Create the service file
sudo vim /etc/systemd/system/tungo.service
2ī¸âŖ Paste in this configuration
[Unit]
Description=TunGo VPN Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=tungo s
User=root
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
3ī¸âŖ Enable the service
sudo systemctl enable tungo.service
4ī¸âŖ Start the service
sudo systemctl start tungo.service
5ī¸âŖ Check its status
sudo systemctl status tungo.service